﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace LuanVanProject
{
    /// <summary>
    /// Interaction logic for TextEditor.xaml
    /// </summary>
    public partial class TextEditor : Window
    {
        public string output;
        public bool result;
        public TextEditor()
        {
            InitializeComponent();
        }
        public TextEditor(string text)
        {
            InitializeComponent();
            this.MyRTF.SetRTF(text);
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            result = true;
            output = MyRTF.GetRTF();
            this.Close();
        }
        private void button2_Click(object sender, RoutedEventArgs e)
        {
            result = false;
            this.Close();
        }
        
    }
}
